//
//  SotreTitleCell.m
//  jingdongfang
//
//  Created by MTiMac01 on 2018/1/8.
//  Copyright © 2018年 LJL. All rights reserved.
//

#import "SotreTitleCell.h"

@interface SotreTitleCell()
@property (nonatomic, strong)UILabel *label;
@end

@implementation SotreTitleCell

- (UILabel *)label
{
    if (!_label)
    {
        self.label = [[UILabel alloc] init];
        _label.textColor = [UIColor c4Color];
        _label.backgroundColor = [UIColor clearColor];
        _label.font = [UIFont font14];
        _label.layer.cornerRadius = 15;
        _label.layer.masksToBounds = YES;
        _label.textAlignment = NSTextAlignmentCenter;
        _label.layer.borderColor = [UIColor c4Color].CGColor;
        _label.layer.borderWidth = 1;
    }
    return _label;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.label.text = _str;
    [self addSubview:self.label];
    @KWeakObj(self);
    [self.label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.mas_equalTo(0);
        make.centerY.mas_equalTo(selfWeak);
        make.height.mas_equalTo(30);
    }];
}


@end
